{template header}
<script src="static/bootstrap/js/utils.js"></script>
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<form class="form-horizontal" action="index.php?c=admin&a=catAction" method="post" enctype="multipart/form-data">
  <div class="control-group">
    <label class="control-label" for="inputTiltle">品类名称：</label>
    <div class="controls">
      <input type="text" name='catName' placeholder="请输入品类名称" value="{$catInfo['catName']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">品类图片：</label>
    <div class="controls">
      <img width="150" src="{$catInfo['logo']}" alt="品类图片">
      <input type="file" name='newLogo' value="{$catInfo['catName']}">
      <input type="hidden" name='logo' value="{$catInfo['logo']}">
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">显示：</label>
    <div class="controls">
      <select name="isShow">
        <option {if $catInfo['isShow'] == 1}selected="selected"{/if} value="1">显示</option>
        <option {if $catInfo['isShow'] == 0}selected="selected"{/if} value="0">隐藏</option>
      </select>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label" for="inputTiltle">排序号：</label>
    <div class="controls">
      <input type="text" name='sorder' placeholder="请输入排序号" value="{$catInfo['sorder']}">
      <span>值越小位置越靠前</span>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
        <input type="hidden" name="catId" value="{$catInfo['catId']}">
        <input type="hidden" name="action" value="{$action}">
        <button type="submit" class="btn">提交</button>
    </div>
  </div>
</form>
{template footer}